﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;
using UIT.ScrumTool.DTO;

namespace UIT.ScrumTool.Service.Interface
{
    [ServiceContract]
    public interface ITeamService
    {
        [OperationContract]
        List<TeamDto> TeamGetByAll();

        [OperationContract]
        TeamDto TeamGetById(int id);

        [OperationContract]
        List<TeamDto> TeamGetByProjectId(int projectId);

        [OperationContract]
        int TeamInsert(TeamDto teamDto);

        [OperationContract]
        bool TeamUpdate(TeamDto teamDto);

        [OperationContract]
        bool TeamDelete(int id);
    }
}
